//
//  textView.m
//  LinTouYang
//
//  Created by glavesoft on 15/3/5.
//  Copyright (c) 2015年 glavesoft. All rights reserved.
//

#import "textView.h"

@implementation textView
-(void)layoutSubviews
{
    [super layoutSubviews];
//    _splashView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"d"]];
//    [self addSubview:_splashView];
    
    UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom];
    button1.frame = self.frame;
    [button1 setTitle:@"反反复复" forState:UIControlStateNormal];
    [button1 addTarget:self action:@selector(hideView:) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:button1];
    
}

-(void)hideView:(id)sender
{
    [_delegate buyIphone:@"iphone 4s" money:@"4888"];
}

@end
